﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Forms.Integration;

namespace HookupAppForm.Draw
{
    public partial class FrmCustomDrawList : Form
    {
        FormMain mainForm;
        public FrmCustomDrawList(FormMain _main)
        {
            InitializeComponent();
            Load += FrmCustomDrawList_Load;
            mainForm = _main;
        }

        private void FrmCustomDrawList_Load(object sender, EventArgs e)
        {
            ElementHost eh = new ElementHost() { Dock = DockStyle.Fill };
            eh.Child = new UC_CustomDrawList(mainForm);
            panel1.Controls.Add(eh);
        }
    }
}
